<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
  String path = request.getContextPath();
  String basePath = ContextHolder.getWebServerName(request);
%>

<c:if test="${success > 0}">
</c:if>
<c:choose>
	<c:when test="${success == 0}">
		<div data-role="content" class="ui-content" role="main">
			<img style="width:40%" src="<%=basePath%>img/wechat/disappointed.jpg">
			<h3 class="ui-title" role="heading" aria-level="1">用户认证失败，请联系人工服务台！</h3>
		</div>
	</c:when>
	<c:when test="${success==2 }">
		<div data-role="content" class="ui-content" role="main">
			<img style="width:40%" src="<%=basePath%>img/wechat/disappointed.jpg">
			<h3 class="ui-title" role="heading" aria-level="1">帐号绑定失败，请确认您的帐号和密码是否匹配！</h3>
		</div>

		<ul data-role="listview" data-inset="true" data-filter="true"
			data-input="#filter-for-listview">
			<li><a
				href="<%=basePath%>api/wechat/setting/register1?openid=${openid}">绑定帐号</a>
			</li>
			<li><a
				href="<%=basePath%>api/wechat/setting/register2_1?openid=${openid}">注册新帐号</a>
			</li>
		</ul>

	</c:when>
	<c:when test="${success==1 }">
		<div data-role="content" class="ui-content" role="main">
			<c:choose>
				<c:when test="${empty error }">
					<div class="page msg_success js_show">
						<div class="weui-msg">
							<div class="weui-msg__icon-area">
								<i class="weui-icon-success weui-icon_msg"></i>
							</div>
							<div class="weui-msg__text-area">
								<h2 class="weui-msg__title">注册成功</h2>
								<p class="weui-msg__desc">
									您好，你的申请已通过认证。
								</p>
							</div>
							<div class="weui-msg__opr-area">
								<p class="weui-btn-area">
									<%-- <c:if test="${newUser eq false }">
									   <a href="<%=basePath%>api/wechat/incident/newIncident?openid=${openid}"
										class="weui-btn weui-btn_primary">申报事件</a>
									</c:if>	 --%>					
										<%-- <a
										href="../userAccount/view?openid=${openid }"
										class="weui-btn weui-btn_default">查看账号</a> --%>
								 <a href="<%=basePath%>/api/wechat/incident/index2?openid=${openid}"
										class="weui-btn weui-btn_primary">故障申报</a>
								</p>
							</div>
							<!-- <div class="weui-msg__extra-area">
								<div class="weui-footer">
									<p class="weui-footer__links">
										<a href="javascript:void(0);" class="weui-footer__link">底部链接文本</a>
									</p>
									<p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
								</div>
							</div> -->
						</div>
					</div>
				</c:when>
				<c:otherwise>
					<h3 class="ui-title" style="text-align: center;" role="heading"
						aria-level="1">${error }</h3>
					<ul data-role="listview" data-inset="true" data-filter="true"
						data-input="#filter-for-listview">
						<li data-role="list-divider">现在可以进行以下操作</li>
				</c:otherwise>
			</c:choose>
			</ul>
		</div>
	</c:when>
</c:choose>
